package com.ling.dao;

import com.ling.bean.BlogComment;
import com.ling.bean.BlogCommentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogCommentMapper {
    //定制查询，在查询评论信息时，带上用户的头像信息
    List<BlogComment> selectByExampleWithHeadImg(BlogCommentExample example);

    long countByExample(BlogCommentExample example);

    int deleteByExample(BlogCommentExample example);

    int deleteByPrimaryKey(String id);

    int insert(BlogComment record);

    int insertSelective(BlogComment record);

    List<BlogComment> selectByExample(BlogCommentExample example);

    BlogComment selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") BlogComment record, @Param("example") BlogCommentExample example);

    int updateByExample(@Param("record") BlogComment record, @Param("example") BlogCommentExample example);

    int updateByPrimaryKeySelective(BlogComment record);

    int updateByPrimaryKey(BlogComment record);
}